package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.SysDeviceEarlyWarning;

/**
 * 设备预警单Mapper接口
 * 
 * @author ruoyi
 * @date 2022-07-21
 */
public interface SysDeviceEarlyWarningMapper 
{
    /**
     * 查询设备预警单
     * 
     * @param dewId 设备预警单主键
     * @return 设备预警单
     */
    public SysDeviceEarlyWarning selectSysDeviceEarlyWarningByDewId(Long dewId);

    /**
     * 查询设备预警单列表
     * 
     * @param sysDeviceEarlyWarning 设备预警单
     * @return 设备预警单集合
     */
    public List<SysDeviceEarlyWarning> selectSysDeviceEarlyWarningList(SysDeviceEarlyWarning sysDeviceEarlyWarning);

    /**
     * 新增设备预警单
     * 
     * @param sysDeviceEarlyWarning 设备预警单
     * @return 结果
     */
    public int insertSysDeviceEarlyWarning(SysDeviceEarlyWarning sysDeviceEarlyWarning);

    /**
     * 修改设备预警单
     * 
     * @param sysDeviceEarlyWarning 设备预警单
     * @return 结果
     */
    public int updateSysDeviceEarlyWarning(SysDeviceEarlyWarning sysDeviceEarlyWarning);

    /**
     * 删除设备预警单
     * 
     * @param dewId 设备预警单主键
     * @return 结果
     */
    public int deleteSysDeviceEarlyWarningByDewId(Long dewId);

    /**
     * 批量删除设备预警单
     * 
     * @param dewIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysDeviceEarlyWarningByDewIds(String[] dewIds);
}
